package com.dream.technology.service;

import com.dream.technology.db.entity.RcFlowItem;
import com.dream.technology.db.entity.RcFlowItemQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RcFlowItemService {

    int countByExample(RcFlowItemQuery example);

    int deleteByExample(RcFlowItemQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(RcFlowItem record);

    int insertSelective(RcFlowItem record);

    List<RcFlowItem> selectByExample(RcFlowItemQuery example);

    RcFlowItem selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RcFlowItem record, @Param("example") RcFlowItemQuery example);

    int updateByExample(@Param("record") RcFlowItem record, @Param("example") RcFlowItemQuery example);

    int updateByPrimaryKeySelective(RcFlowItem record);

    int updateByPrimaryKey(RcFlowItem record);


    /**
     * 批量插入
     *
     * @param flowItems
     * @return
     */
    Integer insertList(List<RcFlowItem> flowItems);

    /**
     * 复制元素
     *
     * @param id
     * @param newId
     * @return
     */
    String copy(Long id, Long newId);


    List<RcFlowItem> selectByFlowId(Long id);

}
